home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 4
/
FM Towns Free Software Collection 4 - Disc 1.iso
/
t_os
/
helper
/
source
/
dir.h
< prev
next >
Wrap
Text File
|
1991-10-18
|
726b
|
36 lines
/*
* dir.h
*/
#define IS_DIR(dp) (dp->d_att & 0x10)
typedef struct direct {
struct direct *d_next;
struct direct *d_child;
unsigned char d_att;
unsigned short int d_time,d_date;
unsigned long d_size;
char d_name[1];
} DIRECT;
typedef struct {
DIRECT *dd_top;
DIRECT *dd_now;
} DIR;
DIR *opendir(char *dir);
DIRECT *readdir(DIR *dirp);
void seekdir(DIR *dirp,int n);
void closedir(DIR *dirp);
int chdrv(int no);
int chdir(char *name);
int getdrv(void);
int getdir(char *name);
int mkdir(char *name);
int rmdir(char *name);
int getattr(char *name);
int isdir(char *name);
char *joint_path(char *dir,char *file);
char *file_serch(char *dir,char *file);